package yi.commons.exceptions;

public enum CommonExceptionThrower implements ExceptionThrower {
    SystemError("systemerror", "系统错误", "%s");

    private CommonExceptionThrower(String errorCode, String errorDesc, String messageFormat) {
        this.errorCode = errorCode;
        this.errorDesc = errorDesc;
        this.messageFormat = messageFormat;
    }

    private String errorCode;

    private String errorDesc;

    private Class<? extends CommonException> exceptionClz;

    private String messageFormat = "%s";

    @Override
    public String getErrorCode() {
        return null;
    }

    @Override
    public String getErrorDesc() {
        return null;
    }

    @Override
    public ExceptionMessageFormater getMessageFormatter() {
        return null;
    }

    @Override
    public String formatMessage(Object param) {
        return null;
    }

    @Override
    public CommonException buildException() {
        return null;
    }

    @Override
    public CommonException buildException(String msg) {
        return null;
    }

    @Override
    public CommonException buildException(String msg, Throwable throwable) {
        return null;
    }

    @Override
    public CommonException buildException(Throwable throwable) {
        return null;
    }
}
